import request from '@/utils/request'

export const getSystems = () => request('/Systems', 'GET') // 系统信息数据获取

// 系统信息数据获取
export function postSystems (data){
    return request({
        url: '/Systems',
        method: 'POST',
        data
    })
}

export async function  getTechnologys() {
    let res =  await request({
      url: '/Admins',
      method: 'get',
    })
    return res.data.value;
  }
  export function removeCustomer(id){
    return request({
      url: `/Systems/${id}`,
      method: 'delete'
    })
    // return  new Promise( async (resolve, reject) => {
    //   var index = datas.findIndex(e=>e.id==id);
    //   datas.splice(index,1);
    //   resolve();
    // });
  }